import { getLocalStore } from "@/utils/global.js";
const state = {
  theme: getLocalStore("theme"),
  token: getLocalStore("token"),
  lang: getLocalStore("lang"),
  screenHeight: ""
};

const mutations = {
  SET_TOKEN: (state, val) => {
    state.token = val;
  },
  SET_THEME: (state, val) => {
    state.theme = val;
  },
  SET_LANG: (state, val) => {
    state.lang = val;
  },
  SET_SCREEN_HEIGHT: (state, height) => {
    state.screenHeight = height;
  }
};

const actions = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
